home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / programm.ing / funnel.zoo / scripts / test_lot.fws < prev    next >
Encoding:
Text File  |  1993-04-15  |  1.4 KB  |  57 lines

  1. !==========================<Start of test_lot Script>===========================
  2. !
  3. ! Test With Listing File and Product File and Typeset File
  4. ! --------------------------------------------------------
  5. ! Inputs:
  6. !    $1 = Name of the .fw file to be tested (e.g. $1="sc01").
  7. !    $I = Directory containing .fw    files.
  8. !    $A = Directory containing Answer files.
  9. !    $O = Directory to place   Result files.
  10. !    $D = Name of the differences file.
  11. ! Outputs:
  12. !    Listing file.
  13. !    Product file.
  14. !    Typeset file.
  15. !    Appendage to differences file.
  16.  
  17. ! Announce this test.
  18. write ""
  19. write ""
  20. writeu "Performing Test $1"
  21.  
  22. ! Delete any previous output files.
  23. eneo $O$1.log
  24. eneo $O$1.lis
  25. eneo $O$1.tex
  26. eneo $O$1.out
  27.  
  28. ! Check input and answer files.
  29. exists $I$1.fw
  30. exists $A$1.lis
  31. exists $A$1.tex
  32. exists $A$1.out
  33.  
  34. ! Clean input and answer files.
  35. fixeols $I$1.fw
  36. fixeols $A$1.lis
  37. fixeols $A$1.tex
  38. fixeols $A$1.out
  39.  
  40. ! Perform the actual FunnelWeb run.
  41. ! Tolerate means "don't abort on warning, error, or severe".
  42. tolerate
  43. fw $I$1.fw +l$O$1.lis +o$O +t$O$1.tex
  44.  
  45. ! Ensure that all three output files were generated.
  46. absent $O$1.log
  47. exists $O$1.out
  48. exists $O$1.lis
  49. exists $O$1.tex
  50.  
  51. ! Compare the results with the answers.
  52. diff $O$1.lis $A$1.lis $D
  53. diff $O$1.out $A$1.out $D
  54. diff $O$1.tex $A$1.tex $D
  55.  
  56. !===========================<End of Test_lot Script>============================
  57.